﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="System.Web.UI.HtmlControls" TagPrefix="cc2" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <script language="javascript">
        function openWin(){
	        var url = "System/Auth/Logon.aspx";
	        var opt = options();
	        var win = window.open(url,"menu",opt);
	        win.focus();
        }
        function options(){
	        var optArray = new Array()
	        optArray[optArray.length] =       "left=0";
	        optArray[optArray.length] = "," + "top=0";
	        optArray[optArray.length] = "," + "location=no";
	        optArray[optArray.length] = "," + "toolbar=no";
	        optArray[optArray.length] = "," + "directories=no";
	        optArray[optArray.length] = "," + "status=yes";
	        optArray[optArray.length] = "," + "menubar=no";
	        optArray[optArray.length] = "," + "channelmode=no";
	        optArray[optArray.length] = "," + "titlebar=no";
	        optArray[optArray.length] = "," + "resizable=yes";
	        optArray[optArray.length] = "," + "scrollbars=yes";
	        // optArray[optArray.length] = "," + "width=1014";
	        optArray[optArray.length] = "," + "width="+ (screen.availWidth-10);
	        optArray[optArray.length] = "," + "height="+ (screen.availHeight-30);

	        var options = "";
	        for( var i=0; i<optArray.length; i++ ) options += optArray[i];
	        return options;
        }
        var busy = false
        function forceclose(){
	        if( busy == false ){
		        busy = true;
		        if( navigator.appName == "Netscape" ){
			        window.open("","_top")
			        window.close();
			        openWin();
		        }
		        else{
			        if( document.all && ( navigator.userAgent.match(/MSIE (\d\.\d)/), RegExp.$1) >= 5.5 ){
				        var w = window.open("","_top")
				        w.opener = window;
				        w.close();
				        openWin();
			        }
			        else{
				        // alert("対応されていないブラウザの為、表示する事ができません。");
				        //window.close();
				        //var timer=setTimeout("busy=false;forceclose()",500);
			        }
		        }
	        }
        }
        //forceclose();
    </script>
</head>
<body>
    <form id="form1" runat="server">
    </form>
</body>
</html>
